package com.leinao.media.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * 录像详情
 *
 * @author zhangyu
 * @date 2021/11/29 16:37
 */
public class VideoInfo {

    /**
     * 录像名称
     */
    private String videoName;

    /**
     * 开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startTime;

    /**
     * 结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endTime;

    /**
     * 录像大小
     */
    private String videoSize;

    /**
     * 录像时长（秒）
     */
    private Long videoTime;

    /**
     * 录像服务器存储地址
     */
    private String videoUrl;

    public String getVideoName() {
        return videoName;
    }

    public void setVideoName(String videoName) {
        this.videoName = videoName;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getVideoSize() {
        return videoSize;
    }

    public void setVideoSize(String videoSize) {
        this.videoSize = videoSize;
    }

    public Long getVideoTime() {
        return videoTime;
    }

    public void setVideoTime(Long videoTime) {
        this.videoTime = videoTime;
    }

    public String getVideoUrl() {
        return videoUrl;
    }

    public void setVideoUrl(String videoUrl) {
        this.videoUrl = videoUrl;
    }

    @Override
    public String toString() {
        return "VideoInfo{" +
                "videoName='" + videoName + '\'' +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                ", videoSize='" + videoSize + '\'' +
                ", videoTime=" + videoTime +
                ", videoUrl='" + videoUrl + '\'' +
                '}';
    }
}
